package cc.lj.internal.api.coupons.dto.querty;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Min;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * 合同收券记录表,列表查询query入参
 * @author liangxifeng
 * @date 2021-12-14
 */
@Data
@NoArgsConstructor
@Accessors(chain = true)
@ApiModel("合同收券记录表,列表查询query入参")
@Validated
public class TicketPayRecordApiQuery {
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    private Integer	id;

    /**
     * 合同号
     */
    @ApiModelProperty(value = "合同号")
    private String	pactNumber;

    /**
     * 收券类型：product_conume/mall_order
     */
    @ApiModelProperty(value = "收券类型：product_conume/mall_order")
    private String	grantType;

    /**
     * 券使用码
     */
    @ApiModelProperty(value = "券使用码")
    private String	ticketUsecode;

    /**
     * 状态：0正常收款状态,1退款状态,2冲红状态
     */
    @ApiModelProperty(value = "状态：0正常收款状态,1退款状态,2冲红状态")
    private Integer	status;

    /**
     * 合同表product_conume主键
     */
    @ApiModelProperty(value = "合同表product_conume主键")
    @Min(value = 1,message = "合同表product_conume主键不能小于1")
    private Integer	pactId;

    /**
     * 关联批次表主键
     */
    @ApiModelProperty(value = "关联批次表主键")
    private Integer	ticketBatchId;

    /**
     * 券面额
     */
    private BigDecimal ticketPrice;

}
